package cn.hwadee.muying.mapper;

import cn.hwadee.muying.commons.page.MyPage;
import cn.hwadee.muying.entity.Organization;
import cn.hwadee.muying.entity.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Mankind
 * @since 2018-04-20
 */
@Mapper
@Component(value = "orgMapper")
public interface OrganizationMapper extends BaseMapper<Organization> {

    List<Organization> list(@Param("page") MyPage<Organization> page,
                            @Param("cUser") User cUser,
                            @Param("keyword") String keyword) throws Exception;

}
